package com.example.rx3demo.test1;

import io.reactivex.rxjava3.annotations.NonNull;
import io.reactivex.rxjava3.core.Observable;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: zhangQi
 * @Date: 2020-10-06 22:09
 */
public class HowToRxJava1 {

    public static void main(String[] args) {
        Observable<String> o = Observable.fromArray("a","b","c");

        List<Integer> integerList = new ArrayList<>();
        integerList.add(5);
        integerList.add(6);
        integerList.add(7);
        integerList.add(8);
        @NonNull Observable<List<Integer>> listObservable = Observable.fromArray(integerList);

        int[] intArr = {33,44,55,66};
        @NonNull Observable<int[]> observable = Observable.fromArray(intArr);

        @NonNull Observable<String> one_object = Observable.just("one object");

    }
}
